package com.nhjf.common.util.xss;

import org.jsoup.safety.Whitelist;

/**
 * @类功能说明：
 * @类修改者：
 * @修改日期：
 * @修改说明：
 * @公司名称：浙江汇购科技有限公司
 * @部门：技术部
 * @作者：李玄玄
 * @创建时间：2017/12/8 9:32
 * @版本：V1.0
 */
public class JsoupXssHtml {

    public final static Whitelist user_content_filter = Whitelist.relaxed();

    //    static {
//        user_content_filter.addTags(XssTagProperties.getInstance().get("htmltags"));
//        user_content_filter.addAttributes(XssTagProperties.getInstance().get("htmlAttributes"));
//    }
    static {
        user_content_filter.addTags("embed", "object", "param", "span", "div");
        user_content_filter.addAttributes(":all", "style", "class", "id", "name");
        user_content_filter.addAttributes("object", "width", "height", "classid", "codebase");
        user_content_filter.addAttributes("param", "name", "value");
        user_content_filter.addAttributes("embed", "quality", "width", "height", "allowFullScreen", "allowScriptAccess", "flashvars", "name", "type", "pluginspage");
    }

}
